import Vue from 'vue'
import Router from 'vue-router'
const indexs = resolve => require(['@/pages/index'],resolve)
const information = resolve => require(['@/pages/information'],resolve)
const renzheng = resolve => require(['@/pages/renzheng'],resolve)
const buy = resolve => require(['@/pages/buy'],resolve)
const guanggao = resolve => require(['@/pages/guanggao'],resolve)
const renzheng2 = resolve => require(['@/pages/guanggao/renzheng'],resolve)
const guanggaoguanli = resolve => require(['@/pages/guanggao/guanli'],resolve)
const share = resolve => require(['@/pages/share'],resolve)
const news = resolve => require(['@/pages/news'],resolve)
const newsDetail = resolve => require(['@/pages/news/newsDetail'],resolve)
const changePassword = resolve => require(['@/components/changePassword'],resolve)
const register = resolve => require(['@/components/register'],resolve)
const login = resolve => require(['@/components/login'],resolve)


Vue.use(Router)

export default new Router({
  mode:'history',
  base:'/ee/',
  routes: [
    {
      path: '/indexs',
      name: 'indexs',
      component: indexs,
    },
    {
      path: '/information',
      name: 'information',
      component: information
    },
    {
      path: '/renzheng',
      name: 'renzheng',
      component: renzheng
    },
    {
      path: '/buy',
      name: 'buy',
      component: buy
    },
    {
      path: '/guanggao',
      name: 'guanggao',
      component: guanggao
    },
    {
      path: '/guanggao/renzheng2',
      name: 'renzheng2',
      component: renzheng2
    },
    {
      path: '/guanggaoguanli',
      name: 'guanggaoguanli',
      component: guanggaoguanli
    },
    {
      path:'/share',
      name:'share',
      component:share
    },
    {
      path:'/news',
      name:'news',
      component:news
    },
    {
      path:'/news/newsDetail',
      name:'newsDetail',
      component:newsDetail
    },
    {
      path:'/changePassword',
      name:'changePassword',
      component:changePassword
    },
    {
      path:'/register',
      name:'register',
      component:register
    },
    {
      path:'/login',
      name:'login',
      component:login
    },
    {
      path:'*',
      redirect:'/indexs'
    }
  ]
})
